home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / misc / medical / mendelge.cpt / MendelGenetics / MENDELIAN GENETICS I / card_114326.txt < prev    next >
Text File  |  1989-06-13  |  5KB  |  228 lines

  1. -- card: 114326 from stack: in
  2. -- bmap block id: 126232
  3. -- flags: 0000
  4. -- background id: 2665
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 01
  10. -- high flags: 0004
  11. -- rect: left=265 top=21 right=43 bottom=322
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 128
  16. -- text size: 10
  17. -- style flags: 256
  18. -- line height: 13
  19. -- part name: SCOREONE
  20.  
  21.  
  22. -- part 2 (button)
  23. -- low flags: 00
  24. -- high flags: 8003
  25. -- rect: left=263 top=120 right=143 bottom=322
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 1
  29. -- font id: 0
  30. -- text size: 12
  31. -- style flags: 0
  32. -- line height: 16
  33. -- part name: SCORE
  34. ----- HyperTalk script -----
  35. on mouseUp
  36.   global correct
  37.   global guess
  38.   global tally
  39.   set numberFormat to "000.00"
  40.   put the value of (( correct / guess ) * 100) into card field scorethree
  41.   put the value of card field scorethree into tally
  42. end mouseUp
  43.  
  44.  
  45.  
  46. -- part 3 (button)
  47. -- low flags: 00
  48. -- high flags: 8003
  49. -- rect: left=327 top=120 right=142 bottom=399
  50. -- title width / last selected line: 0
  51. -- icon id / first selected line: 0 / 0
  52. -- text alignment: 1
  53. -- font id: 0
  54. -- text size: 12
  55. -- style flags: 0
  56. -- line height: 16
  57. -- part name: RETEST
  58. ----- HyperTalk script -----
  59. on mouseUp
  60.   global tally
  61.   put 0 into tally
  62.   global guess
  63.   put 0 into guess
  64.   global correct
  65.   put 0 into correct
  66.   delete line 1 of card field scorethree
  67.   go to card id 53000
  68. end mouseUp
  69.  
  70.  
  71.  
  72. -- part 4 (button)
  73. -- low flags: 00
  74. -- high flags: 8003
  75. -- rect: left=275 top=147 right=169 bottom=377
  76. -- title width / last selected line: 0
  77. -- icon id / first selected line: 0 / 0
  78. -- text alignment: 1
  79. -- font id: 0
  80. -- text size: 12
  81. -- style flags: 0
  82. -- line height: 16
  83. -- part name: NEXT DISK
  84. ----- HyperTalk script -----
  85. on mouseUp
  86.   global tally
  87.   if the value of card field average >= 75 then hide card field "covera"
  88.   if the value of card field average <= 74 then hide card field "coverb"
  89. end mouseUp
  90.  
  91.  
  92.  
  93. -- part 5 (field)
  94. -- low flags: 00
  95. -- high flags: 0001
  96. -- rect: left=265 top=175 right=326 bottom=400
  97. -- title width / last selected line: 0
  98. -- icon id / first selected line: 0 / 0
  99. -- text alignment: 0
  100. -- font id: 3
  101. -- text size: 12
  102. -- style flags: 0
  103. -- line height: 16
  104. -- part name: coverb
  105.  
  106.  
  107. -- part 6 (field)
  108. -- low flags: 00
  109. -- high flags: 0001
  110. -- rect: left=402 top=87 right=294 bottom=505
  111. -- title width / last selected line: 0
  112. -- icon id / first selected line: 0 / 0
  113. -- text alignment: 0
  114. -- font id: 3
  115. -- text size: 12
  116. -- style flags: 0
  117. -- line height: 16
  118. -- part name: covera
  119.  
  120.  
  121. -- part 7 (button)
  122. -- low flags: 00
  123. -- high flags: 8003
  124. -- rect: left=406 top=316 right=338 bottom=506
  125. -- title width / last selected line: 0
  126. -- icon id / first selected line: 0 / 0
  127. -- text alignment: 1
  128. -- font id: 0
  129. -- text size: 12
  130. -- style flags: 0
  131. -- line height: 16
  132. -- part name: RESTORE
  133. ----- HyperTalk script -----
  134. on mouseUp
  135.   show card field "covera"
  136.   show card field "coverb"
  137. end mouseUp
  138.  
  139.  
  140.  
  141. -- part 8 (field)
  142. -- low flags: 01
  143. -- high flags: 0004
  144. -- rect: left=265 top=44 right=66 bottom=322
  145. -- title width / last selected line: 0
  146. -- icon id / first selected line: 0 / 0
  147. -- text alignment: 0
  148. -- font id: 128
  149. -- text size: 10
  150. -- style flags: 256
  151. -- line height: 13
  152. -- part name: SCORETWO
  153.  
  154.  
  155. -- part 9 (field)
  156. -- low flags: 01
  157. -- high flags: 0004
  158. -- rect: left=265 top=66 right=88 bottom=322
  159. -- title width / last selected line: 0
  160. -- icon id / first selected line: 0 / 0
  161. -- text alignment: 0
  162. -- font id: 128
  163. -- text size: 10
  164. -- style flags: 256
  165. -- line height: 13
  166. -- part name: scorethree
  167.  
  168.  
  169. -- part 10 (field)
  170. -- low flags: 01
  171. -- high flags: 0004
  172. -- rect: left=265 top=91 right=113 bottom=322
  173. -- title width / last selected line: 0
  174. -- icon id / first selected line: 0 / 0
  175. -- text alignment: 0
  176. -- font id: 128
  177. -- text size: 10
  178. -- style flags: 256
  179. -- line height: 13
  180. -- part name: average
  181.  
  182.  
  183. -- part 11 (button)
  184. -- low flags: 00
  185. -- high flags: 0000
  186. -- rect: left=324 top=91 right=114 bottom=391
  187. -- title width / last selected line: 0
  188. -- icon id / first selected line: 0 / 0
  189. -- text alignment: 1
  190. -- font id: 0
  191. -- text size: 12
  192. -- style flags: 0
  193. -- line height: 16
  194. -- part name: New Button
  195. ----- HyperTalk script -----
  196. on mouseUp
  197.   set numberFormat to "00.00"
  198.   put the value of ((card field scoreone + card field scoretwo + card field scorethree ) / 3 ) into card field average
  199. end mouseUp
  200.  
  201.  
  202.  
  203. -- part contents for background part 1
  204. ----- text -----
  205. QUIZ
  206.  
  207. -- part contents for background part 2
  208. ----- text -----
  209. Click on the SCORE button to determine how well you have done to this point in the quiz. The score is computed on the number of correct answers divided by the number of incorrect selections you made during the time you took this quiz. If you have taken all three quizzes, you may click on the word Average inside the box and the average score for all three quizzes will be computed. If you wish to go to the next disk in the series, click on the NEXT DISK button.
  210.  
  211.  
  212.  
  213.  
  214. -- part contents for card part 1
  215. ----- text -----
  216. 000.00
  217.  
  218. -- part contents for card part 8
  219. ----- text -----
  220. 000.00
  221.  
  222. -- part contents for card part 10
  223. ----- text -----
  224. 16.67
  225.  
  226. -- part contents for background part 8
  227. ----- text -----
  228. 107